// 字节流导出文件公共方法
export default function exportExcel(data, filename) {
    const link = document.createElement('a')
    let blob = new Blob([data], { type: 'application/vnd.ms-excel' })
    link.style.display = 'none';
    link.href = URL.createObjectURL(blob);
    link.download = filename; //下载的文件名
    document.body.appendChild(link);
    link.click();
    document.body.removeChild(link);
}